<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/tlds/c.tld"%>
<%@ taglib prefix="spring" uri="/WEB-INF/tlds/spring.tld"%>
<c:set var="BasePath" value="${pageContext.request.contextPath}"></c:set>
<c:set var="Plugins" value="${pageContext.request.contextPath}/res/plugins"></c:set>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>商品帮助中心</title>
<script src="${Plugins}/jquery/jquery-1.4.4.min.js"	type="text/javascript"></script>
</head>
<body>
<p style="display: none;">
<font>货品条码去除空格：</font>
<input type="button" value="执行" onclick="trimProductCode();" />
</p>

<hr/>
<p>
<font>根据表名称、表字段去除空格</font>
</p>
<p>
<font>表名称：</font>
<input id="table" name="table" />
</p>
<p>
<font>表字段：</font>
<input id="column" name="column" />
</p>
<p><input onclick="updateError()" type="button" value="确定" /></p>
<hr/>


</body>
<script type="text/javascript">
function trimProductCode() {
	$.post("updateProductSpace.do",function(data){
		alert(data);
	});
}

function updateError() {
	var table = document.getElementById("table").value;
	var column = document.getElementById("column").value;
	$.post("updateError.do",{column:column,table:table},function(data){
		alert(data);
	});
}
</script>
</html>